
function openUrl(url) {
    var ref = cordova.InAppBrowser.open(url, '_blank', 'location=yes,hidden=yes,zoom=no,hardwareback=no,navbarheight=30');
    //_blank _self是内置打开，_system是跳转系统浏览器打开
    ref.show("华为开发者");
}

function openTel() {
    var ref = window.open("tel:057156687682", '_blank', 'location=yes,hidden=no,zoom=no,hardwareback=no');
    ref.show("打电话");
}

function openBuiduMap() {
    var ref = window.open("baidumap://map/show?center=40.057406655722,116.29644071728&zoom=11&traffic=on&bounds=37.8608310000,112.5963090000,42.1942670000,118.9491260000&src=andr.baidu.openAPIdemo", '_blank', 'location=yes,hidden=no,zoom=no,hardwareback=no');
    ref.show("跳转百度地图");
}

function openGaodeMap() {
    var ref = window.open("amapuri://route/plan?sid=BGVIS1&dlat=39.98848272&dname=B&slat=39.92848272&dlon=116.47560823&did=BGVIS2&slon=116.39560823&sname=A&t=0&sourceApplication=applicationName", '_blank', 'location=yes,hidden=no,zoom=no,hardwareback=no');
    ref.show("跳转高德地图");
}
